package com.xiaohua.tlgorders.mapper;

import com.xiaohua.tlgorders.entity.Order;
import com.xiaohua.tlgorders.entity.OrderGoods;
import org.apache.ibatis.annotations.Param;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 *@Author 小花
 *@Date 2019/7/15 16:24
 **/
@Component
public interface OrderGoodsMapper {

   List<Order> findUesrId(@Param("userId") Integer userId);//查询用户订单
/**查询订单详情*/
   Order findDetail(Integer userId,String orderNo,Integer addressId);
/*按商品名和订单号*/
   List<Order> findByNoOrName( String orderNo, String goodsName, Integer userId);


   List<Order> findStatus(Integer userId,Integer orderStatus);//根据订单状态查询
   Integer   createOrderGoods(OrderGoods og);//新增

   Integer  delOrderGoods(String orderNo);//删除订单


   Integer  byNameOrNoCount(String orderNo,String goodsName,Integer userId);//按照订单号或者商品名查询
}
